.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 75px;
    background: #5980c3;
}

.logo {
    width: 45px;
    margin-right: auto;
}

.user {
    position: relative;
    height: 100%;
}

.user-avatar {
    display: flex;
    align-items: center;
    padding: 0 5px;
    gap: 5px;
    height: 100%;
    cursor: pointer;
    background: none;
    outline: none;
    border: none;
    transition: background .3s linear;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, .7);
}

.user-avatar-active {
    background: rgba(255, 255, 255, .7);
}

.user-avatar-active::before {
    content: "";
    position: fixed;
    z-index: 5;
    width: 100vw;
    height: 100vh;
    top:0;
    left: 0;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.user-arrow-down {
    width: 20px;
    height: 20px;
    background: url('../../img/home_page/arrow-right.svg') no-repeat center center;
    background-size: 16px;
    transform: rotate(90deg);
}

.user-content {
    display: none;
    top: 75px;
    position: absolute;
    padding: 20px;
    z-index: 10;
    right: 0;
    min-width: 350px;
    border-radius: 10px;
    box-shadow: 0px 4px 32px rgba(0,0,0,.1);
    background: #ffffff;
}

.user-content-active {
    display: block;
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #e8f1ff;
    border-radius: 10px;
    margin-bottom: 10px;
}

.user-fio {
    margin: 0;
    font-size: 20px;
}

.user-username {
    margin: 0;
    color: #4472e9;
}

.user-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    transition: transform 0.3s linear;
}

.user-info:hover .user-arrow {
    transform: translate(5px, -50%);
}

.user-arrow > svg {
    width: 40px;
    height: 40px;
}

.user-links-list {
    margin-bottom: 20px;
}

.user-link {
    display: block;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s linear;
}

.user-link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../../img/global/admin-svg.svg') no-repeat center center;
    background-size: contain;
    margin-right: 10px;
}

.attention-icon::before {
    background: url('../../img/home_page/attention-icon.svg') no-repeat center center;
    background-size: contain;
}

.theme-icon::before {
    background: url('../../img/home_page/theme-icon.svg') no-repeat center center;
    background-size: contain;
}

.project-icon::before {
    background: url('../../img/home_page/project-icon.svg') no-repeat center center;
    background-size: contain;
}

.archive-icon::before {
    background: url('../../img/home_page/archive-icon.svg') no-repeat center center;
    background-size: contain;
}

.contests-icon::before {
    background: url('../../img/global/contests-icon.svg') no-repeat center center;
    background-size: contain;
}


.user-link:focus {
    background: #F7F7F7;
}

.user-link:hover {
    background: #F7F7F7;
}

.user-link:active {
    background: #cccccc;
}

.user-button {
    display: block;
    margin: 0 auto;
    padding: 10px 15px;
    border: 2px solid #ff1b24;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    background: none;
    outline: none;
    color: #ff1b24;
    cursor: pointer;
    transition: background 0.3s linear, color 0.3s linear;
}

.user-button:hover {
    background: #F7F7F7;
}

.user-button:active {
    background: #ff1b24;
    color: #fff;
}

.nav {
    margin-right: 35px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item:not(:last-child) {
    margin-right: 1.4em
}

.nav-item {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
}

.notifications {
    position: relative;
    margin-right: 35px;
}

.notifications-btn {
    position: relative;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

.notifications-btn-active::before {
    content: "";
    position: fixed;
    z-index: 5;
    width: 100vw;
    height: 100vh;
    top:0;
    left: 0;
}

.notifications-div {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    right: 6px;
    top: 2px;
    border-radius: 50%;
    background: #ff1b24;
}

.notifications-svg {
    height: 25px;
    width: 25px;
    fill: #ffffff;
}

.notifications-content {
    display: none;
    top: 60px;
    position: absolute;
    padding: 30px;
    z-index: 10;
    right: 0;
    width: 700px;
    border-radius: 10px;
    box-shadow: 0px 4px 32px rgba(0,0,0,.1);
    background: #ffffff;
}

.notifications-content-active {
    display: block;
}

.notifications-title {
    margin: 0;
    margin-bottom: 40px;
    font-size: 32px;
}

.notifications-list {
    padding: 0 10px;
    max-height: 500px;
    overflow-y: auto;
}

.notifications-item {
    position: relative;
    padding: 20px 20px;
    background: #e8f1ff;
    border-radius: 10px;
    transition: background 0.3s linear;
}

.notifications-item:hover {
    background: #d4dceb;
}

.notifications-item:not(:last-child) {
    margin-bottom: 20px;
}

.notifications-subtitle {
    margin: 0;
    margin-bottom: 25px;
    font-size: 24px;
}

.notifications-link::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.notifications-non {
    width: 100%;
    height: 200px;
    padding: 20px;
    padding-top: 150px;
    border-radius: 10px;
    background: #e8f1ff url('https://cdn4.iconfinder.com/data/icons/smileys-for-fun/128/smiley__12-512.png') no-repeat;
    background-position: center 10px;
    background-size: 100px 100px;
    transition: background-position-y 1s cubic-bezier(0.45, -0.67, 0.53, 1.63);
}

.notifications-non:hover {
    background-position-y: 30px;
}

.notifications-span {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

/*тег медиа для мобильных стилей */
@media only screen and (hover: none) {
    .header {
        padding: .3em 1em;
    }

    .logedin {
        display:none;
    }

    .logo {
        margin-right: auto;
    }

    .nav {
        margin-right: 1em;
    }

    .nav-list {
        gap: 1em;
    }

    .nav-item {
        margin-right: 0.8em;
    }
}